import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  // mode: 'history',
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'main',
      component: () => import('../views/main.vue'),
      children: [
        {
          path: '/classificationManagement',
          name: 'classificationManagement',
          component: () => import('../views/classificationManagement.vue')
        },
        {
          path: '/contentManagnment',
          name: 'contentManagnment',
          component: () => import('../views/contentManagnment.vue')
        }
      ]
    }
  ]
})
